/**
 * JAVACC DEMO 1.0
 * @copy right apache company All rights reserved. 
 * @Package com.apache.rpc.dao  
 */
package com.apache.rpc.dao;

import com.apache.database.db.DaoImpl;
import org.springframework.stereotype.Repository;

/**
 * description:  动态执行数据移值(历史数据)
 * @author Hou Dayu 创建时间：2016-1-19
 * @Copyright(c)2014:
 */
@Repository("dynamicDatabaseDao")
public class DynamicDatabaseDaoImpl extends DaoImpl {

	/**
	 * TODO 简单描述该方法的实现功能（可选）.  
	 */
	public String getSql(int type) {
		String sql = "";
		switch (type) {
		case 1:
			sql = "select count(*) from InterfaceRegister where 1=1 ";
			break;
		case 2:
			sql = " from InterfaceRegister where 1=1 ";
			break;
		default:
			sql = "select count(*) from InterfaceRegister where 1=1 ";
		}
		return sql;
	}

	/**
	 * TODO 简单描述该方法的实现功能（可选）.  
	 */
	public void initSystemCache() {

		// TODO Auto-generated method stub

	}

}
